package com.lihua.newideas.pojo;


import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

public class Article {

  private long id;
  private long userId;
  private String articleTitle;
  private Date articleNewstime; //发表时间
  private String articleSummary; //文章摘要
  private String articleThumbnail;//文章封面图
  private String articleContent;
  private String articleContentMd;
  private String articleAuthor;
  private String articleEdit;
  private long articleType;//文章类型0原创1转载
  private long articleComment;//是否开启评论 0开启1不开启
  private long articleStatus;
  private String articlePost;
  private Date articleUpdatetime;
  private String articleUrl;
  private long articleViews;

  private List<Comment> comments;



  public Article() {

  }


  public Article(long id, long userId, String articleTitle, Timestamp articleNewstime, String articleSummary, String articleThumbnail, String articleContent, String articleContentMd, String articleAuthor, String articleEdit, long articleType, long articleComment, long articleStatus, String articlePost, Timestamp articleUpdatetime, String articleUrl, long articleViews) {
    this.id = id;
    this.userId = userId;
    this.articleTitle = articleTitle;
    this.articleNewstime = articleNewstime;
    this.articleSummary = articleSummary;
    this.articleThumbnail = articleThumbnail;
    this.articleContent = articleContent;
    this.articleContentMd = articleContentMd;
    this.articleAuthor = articleAuthor;
    this.articleEdit = articleEdit;
    this.articleType = articleType;
    this.articleComment = articleComment;
    this.articleStatus = articleStatus;
    this.articlePost = articlePost;
    this.articleUpdatetime = articleUpdatetime;
    this.articleUrl = articleUrl;
    this.articleViews = articleViews;
  }

  public List<Comment> getComments() {
    return comments;
  }

  public void setComments(List<Comment> comments) {
    this.comments = comments;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public String getArticleTitle() {
    return articleTitle;
  }

  public void setArticleTitle(String articleTitle) {
    this.articleTitle = articleTitle;
  }


  public Date getArticleNewstime() {
    return articleNewstime;
  }

  public void setArticleNewstime(Date articleNewstime) {
    this.articleNewstime = articleNewstime;
  }


  public String getArticleSummary() {
    return articleSummary;
  }

  public void setArticleSummary(String articleSummary) {
    this.articleSummary = articleSummary;
  }


  public String getArticleThumbnail() {
    return articleThumbnail;
  }

  public void setArticleThumbnail(String articleThumbnail) {
    this.articleThumbnail = articleThumbnail;
  }


  public String getArticleContent() {
    return articleContent;
  }

  public void setArticleContent(String articleContent) {
    this.articleContent = articleContent;
  }


  public String getArticleContentMd() {
    return articleContentMd;
  }

  public void setArticleContentMd(String articleContentMd) {
    this.articleContentMd = articleContentMd;
  }


  public String getArticleAuthor() {
    return articleAuthor;
  }

  public void setArticleAuthor(String articleAuthor) {
    this.articleAuthor = articleAuthor;
  }


  public String getArticleEdit() {
    return articleEdit;
  }

  public void setArticleEdit(String articleEdit) {
    this.articleEdit = articleEdit;
  }


  public long getArticleType() {
    return articleType;
  }

  public void setArticleType(long articleType) {
    this.articleType = articleType;
  }


  public long getArticleComment() {
    return articleComment;
  }

  public void setArticleComment(long articleComment) {
    this.articleComment = articleComment;
  }


  public long getArticleStatus() {
    return articleStatus;
  }

  public void setArticleStatus(long articleStatus) {
    this.articleStatus = articleStatus;
  }


  public String getArticlePost() {
    return articlePost;
  }

  public void setArticlePost(String articlePost) {
    this.articlePost = articlePost;
  }


  public Date getArticleUpdatetime() {
    return articleUpdatetime;
  }

  public void setArticleUpdatetime(Date articleUpdatetime) {
    this.articleUpdatetime = articleUpdatetime;
  }


  public String getArticleUrl() {
    return articleUrl;
  }

  public void setArticleUrl(String articleUrl) {
    this.articleUrl = articleUrl;
  }


  public long getArticleViews() {
    return articleViews;
  }

  public void setArticleViews(long articleViews) {
    this.articleViews = articleViews;
  }

  @Override
  public String toString() {
    return "Article{" +
            "id=" + id +
            ", userId=" + userId +
            ", articleTitle='" + articleTitle + '\'' +
            ", articleNewstime=" + articleNewstime +
            ", articleSummary='" + articleSummary + '\'' +
            ", articleThumbnail='" + articleThumbnail + '\'' +
            ", articleContent='" + articleContent + '\'' +
            ", articleContentMd='" + articleContentMd + '\'' +
            ", articleAuthor='" + articleAuthor + '\'' +
            ", articleEdit='" + articleEdit + '\'' +
            ", articleType=" + articleType +
            ", articleComment=" + articleComment +
            ", articleStatus=" + articleStatus +
            ", articlePost='" + articlePost + '\'' +
            ", articleUpdatetime=" + articleUpdatetime +
            ", articleUrl='" + articleUrl + '\'' +
            ", articleViews=" + articleViews +
            '}';
  }
}
